package top.hcode.hoj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import top.hcode.hoj.common.result.CommonResult;
import top.hcode.hoj.pojo.entity.user.Major;

import java.util.List;

@Mapper
@Repository
public interface MajorMapper extends BaseMapper<Major> {
    @Select("SELECT id,name,depid FROM major WHERE depid =#{selectedId}")
    List<Major> depfandmajor(String selectedId);

}
